<?xml version="1.0" encoding="utf-8"?>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
  
	<%@include file="loading.jsp" %>	
  	<script type="text/javascript">
		     function okButton(){
     	divSumir();
       
       $('#exlcuir').click();
       
     };
     
     
</script> 
<div id="divsumir">
   <sj:dialog id="dialogexcluiravisomural" name="dialogexcluiravisomural" buttons="{'OK':function() {okButton();$(this).dialog('close');},'Cancel':function() { $(this).dialog('close'); } }" autoOpen="false" modal="true" title="Excluir Registro" effect="explode" hideEffect="explode">
     Excluir Aviso?
    </sj:dialog>
    
    <sj:a onclick="divSumir();" href="mantermural!deleteAviso?idCentro=%{idCentro}&idEstande=%{idEstande}&idAvisoMural=%{idAvisoMural}" targets="main" id="exlcuir"></sj:a>
  
  <s:form action="mantermural!saveAviso" theme="simple"  method="post" id="formlink">
  
		

  	 <div id="nav">
      <!-- skiplink anchor: navigation -->
      <a id="navigation" name="navigation"></a>

      <div class="hlist">
        <ul>
        <li>
          	<sj:a id="retornar" onclick="divSumir();" href="manterestande!editEstande?idCentro=%{idCentro}&idEstande=%{idEstande}"  targets="main" >Retornar
    		</sj:a> 
    	</li>
         
          <li>
          	<sj:a onclick="divSumir();" id="ajaxformlink" formIds="formlink"  targets="main" >Salvar
    		</sj:a>
	      </li>
	      <s:if test="%{idAvisoMural!= null}">
	      	<li>
          		<sj:a openDialog="dialogexcluiravisomural">Excluir</sj:a>	
          	</li>
	   	</s:if>
          
        </ul>
      </div>
    </div>	
  	<s:actionerror cssClass="ui-state-error ui-corner-all" cssStyle="padding: 0pt 0.7em;"/>  	 
  	<s:actionmessage cssClass="ui-state-highlight ui-corner-all" cssStyle="padding: 0pt 0.7em; margin-top: 20px;"/>
		
	 <fieldset class="ui-widget ui-widget-content ui-corner-all" style="margin: 10px">
  	 		<legend class="ui-state-default ui-corner-all">&nbsp;&nbsp;&nbsp;Aviso de Mural&nbsp;&nbsp;&nbsp;</legend>
  	 		<br>
		<table width="100%">
		<tr valign="top" style="height: 40px;">	
			<td>
    			<sj:datepicker name="aviso.exporAte" changeYear="true" displayFormat="dd/mm/yy" buttonImageOnly="true" cssStyle="width: 80px" label="Expor ate"/>
    		</td>
    	</tr>
    	<tr>	
    		<td>
    			   	
				<sj:textarea name="aviso.texto" label="Aviso" cols="100" cssStyle="width: 250px"/>
					
					<s:hidden name="idCentro"/>
					<s:hidden name="idEstande"/>
					
			</td>
		</tr>
		<tr>
			
			</table>
					<s:if test="%{aviso.id != null}">	
				
					<s:hidden name="aviso.id"/>
					<s:hidden name="idAvisoMural" />
					<s:hidden name="aviso.dtCriacao"/>
				</s:if>
	</fieldset>
	
 </s:form> 
 </div>
 